package com.lzx.mq.feign;

import com.lzx.mq.vo.NicknameVO;
import com.lzx.mq.vo.OssVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 程序员星星
 * @date 2023/2/12
 * @Description
 */
@Component
@FeignClient("five-cube-user")
public interface UserClient {

    //修改用户昵称(通知)
    @PutMapping("/user/inform/web/updateNicknameToInform")
    String updateNicknameToInform(@RequestBody NicknameVO nicknameVO);

    //修改用户头像(通知)
    @PutMapping("/user/inform/web/updateAvatarToInform")
    String updateAvatarToInform(@RequestBody OssVO ossVO);
}
